/* test_colormap.cpp */

#include <iostream>
#include <string>
#include <vector>
#include <boost/assign/list_of.hpp>
#include <dodo_plot/kernel/colormap.h>

using namespace std;
using namespace dodo_plot;
using namespace dodo_plot::color_name;
using namespace boost::assign;

int main(int argc, char *argv[])
{
	vector<int> indexes = list_of(5)(15)(28)(63);
	vector<Color> colors = list_of(WHITE)(RED)(GREEN)(BLUE);

	Colormap colormap(indexes.begin(), indexes.end(),
		colors.begin());

	cout << colormap.size() << endl;
	for(int i = 0; i < colormap.size(); ++i)
	{
		cout << i << ":\t" << colormap[i].r() << " " << colormap[i].g() << " " << colormap[i].b() << endl;
	}


	

	return 0;
}

